<?php
	$title = 'title_'.$this->lang;
?>
<div>
	<div class="box-h1">
		<h1><i>
			<?=Kohana::lang('site.viewcart')?> -> 
			<?=Kohana::lang('site.login')?> -> 
			<?=Kohana::lang('site.shipping')?> -> 
			<?=Kohana::lang('site.invoice')?> -> 
			<em><?=Kohana::lang('site.payment')?></em></i>
			<?=Kohana::lang('title.order')?>
		</h1>
		<div class="box1 sform">
			<div style="text-align:right;">
				<?=Kohana::lang('site.orderno')?>: <?=$order->id?>&#160;&#160;&#160;&#160;&#160;
				<?=Kohana::lang('site.order_status')?>: <span style="color:red"><?php $status = Kohana::lang('site.a_order_status'); echo $status[$order->status]?></span>
				<?php if($order->status==0) { ?><button onclick="window.location='/order/payment/<?=$order->id?>'"><?=Kohana::lang('site.payment')?></button><?php } ?>
			</div>
			<?php include(Kohana::find_file('views', 'order/product_list')); ?>
			<br/><h3><?=Kohana::lang('site.shipping_information')?></h3>
			<ul>
			<?php if($order->customer_type=='bookstore' or $order->customer_type=='school') { ?>
				<li>
					<span class="label"><?=Kohana::lang('site.'.$order->customer_type.'_name')?></span>
					<span class="required"></span>
					<span><?=$order->customer_name?></span>
				</li>
				<li>
					<span class="label"><?=Kohana::lang('site.po_number')?></span>
					<span class="required"></span>
					<span><?=$order->customer_po_number?></span>
				</li>
			<?php } ?>
			<?php if($order->customer_type=='bookstore') { ?>
				<li>
					<span class="label"><?=Kohana::lang('site.resale_permit_no')?></span>
					<span class="required"></span>
					<span><?=$order->customer_resale_permit_no?></span>
				</li>
			<?php } ?>
			<li>
				<span class="label"><?=Kohana::lang('site.first_name')?></span>
				<span class="required"></span>
				<span><?=$order->firstname?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.last_name')?></span>
				<span class="required"></span>
				<span><?=$order->lastname?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.email')?></span>
				<span class="required"></span>
				<span><?=$order->email?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.phone')?></span>
				<span class="required"></span>
				<span><?=$order->telephone?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.fax')?></span>
				<span class="required"></span>
				<span><?=$order->fax?></span>
			</li></ul>
			<br/><h3><?=Kohana::lang('site.shipping_address')?></h3>
			<ul><li>
				<span class="label"><?=Kohana::lang('site.address_line')?> 1</span>
				<span class="required"></span>
				<span><?=$order->shipping_address_1?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.address_line')?> 2</span>
				<span class="required"></span>
				<span><?=$order->shipping_address_2?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.city')?></span>
				<span class="required"></span>
				<span><?=$order->shipping_city?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.state_province')?></span>
				<span class="required"></span>
				<span><?=$order->shipping_zone?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.country')?></span>
				<span class="required"></span>
				<span><?=$order->shipping_country?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.postal_code')?></span>
				<span class="required"></span>
				<span><?=$order->shipping_zip_code?></span>
			</li></ul>
			<br/><h3><?=Kohana::lang('site.billing_address')?></h3>
			<ul><li>
				<span class="label"><?=Kohana::lang('site.address_line')?> 1</span>
				<span class="required"></span>
				<span><?=$order->billing_address_1?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.address_line')?> 2</span>
				<span class="required"></span>
				<span><?=$order->billing_address_2?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.city')?></span>
				<span class="required"></span>
				<span><?=$order->billing_city?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.state_province')?></span>
				<span class="required"></span>
				<span><?=$order->billing_zone?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.country')?></span>
				<span class="required"></span>
				<span><?=$order->billing_country?></span>
			</li><li>
				<span class="label"><?=Kohana::lang('site.postal_code')?></span>
				<span class="required"></span>
				<span><?=$order->billing_zip_code?></span>
			</li></ul>
			<div style="clear:both;"></div>
		</div>
	</div>
</div>